//
//  FindListCell.m
//  ShandsMod
//
//  Created by zh s on 2023/3/22.
//  Copyright © 2023 zh_s. All rights reserved.
//

#import "FindListCell.h"

@implementation FindListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.accessoryType = UITableViewCellAccessoryNone;
        self.backgroundColor = [UIColor clearColor];
        [self createView];
    }
    return self;
}

- (void)createView {
    UIView *backV = [[UIView alloc] init];
    [self.contentView addSubview:backV];
    backV.backgroundColor = UIColor.whiteColor;
    backV.frame = CGRectMake(20, 0, SCREEN_WIDTH - 40, 33);
    GWRadius(backV, 16);
    
    
    UILabel *placeholderLab = [[UILabel alloc] init];
    [backV addSubview:placeholderLab];
    placeholderLab.textColor = MAIN_BACKCOLOR;
    placeholderLab.font = FONT_NAME(FONT_Regular, 14);
    placeholderLab.text = @"https://www.baidu.com";
    [placeholderLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(20);
        make.centerY.mas_equalTo(self.contentView.mas_centerY).mas_offset(0);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 16));
    }];
    _titleLab = placeholderLab;
    
    UIImageView *arrowImage = [[UIImageView alloc] init];
    [backV addSubview:arrowImage];
    arrowImage.image = IMAGE_NAME(@"icon_find_deleted");
    [arrowImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(backV.mas_right).mas_offset(- 12);
        make.centerY.mas_equalTo(backV.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(14, 14));
    }];
    arrowImage.userInteractionEnabled = YES;
    _arrowImg = arrowImage;

}



@end
